package com.example.news.pojo.form;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@Schema(description = "类别请求类")
public class CategoryForm {

    private Integer id;

    @Schema(description = "名称")
    @NotEmpty(message = "名称不能为空")
    private String name;

    private String cover;

    @Schema(description = "状态")
    private Integer status;
}
